/**
 * 必填
 * @returns
 */
export const isBiTian = () => {
  return {
    required: true,
    message: '此项为必填项!'
  }
}

/**
 * 必选
 * @returns
 */
export const isBiXian = () => {
  return {
    required: true,
    message: '此项为必选项',
    trigger: 'change'
  }
}

/**
 * 是否为数字
 * @returns
 */
export const isNumber = () => {
  return {
    validateField: /^[0-9]$/,
    message: '必须为数字'
  }
}
